Servebolt\Optimizer\Utils\DatabaseMigration\MigrationRunner A

Total Complexity 69
Dependencies 0
Dependents 3
Total lines 458
Lines of code 244
Logical lines of code 122
Comment lines 135
Methods 31
Properties 9

Methods 31

Method Rating Maintainability Complexity Lines of code
shouldRunMigration()
A
52 9 26
resolveMigrations()
S
54 5 21
tablesExist()
S
59 5 16
alreadyCompleted()
S
60 5 15
runPreOrPostMigration()
S
62 4 12
ensureBlogInheritsMigratedVersionFromSite()
S
64 4 11
executeMigrationStepsWithMultisiteSupport()
S
59 3 18
runMigration()
S
62 3 12
eligibleForUpMigration()
S
64 3 10
resolveAndRunMigrations()
S
69 3 7
eligibleForDownMigration()
S
65 3 9
checkCurrentMigrationStateAndRunAvailableMigrations()
S
68 2 8
getMigrationDirection()
S
77 2 3
handleDeletedSite()
S
73 1 5
getMigratedVersion()
S
80 1 3
setNewMigratedVersion()
S
75 1 4
getAllMigrationFiles()
S
79 1 3
__construct()
S
82 1 3
handleNewSite()
S
71 1 6
migrationVersionOptionsKey()
S
79 1 3
run()
S
80 1 3
cleanUpLegacySiteOption()
S
81 1 3
migrateFromZero()
S
66 1 9
rollbackToZero()
S
66 1 9
runAvailableMigrations()
S
76 1 5
setCurrentMigratedVersion()
S
80 1 3
setCurrentPluginVersion()
S
80 1 3
cleanup()
S
80 1 3
remigrate()
S
80 1 3
refresh()
S
77 1 4
clearMigratedVersion()
S
76 1 4